package com.pg.agent.engine.client.model;

import com.pg.agent.engine.client.model.environment.AIEnvironment;
import com.pg.agent.engine.client.model.sop.AISOP;
import lombok.Data;

import java.io.Serializable;

/**
 * 会话对象/执行业务流程对象
 *
 * @author huhuaping
 * @date 2023/11/2 11:13
 */
@Data
public class SessionObject implements Serializable {

    private Long serialVersionUID = 6891911391671377865L;

    /**
     * SOP流程
     */
    private AISOP aiSOP;

    /**
     * 上下文环境
     */
    private AIEnvironment aiEnvironment;

    /**
     * 调用次数
     */
    private int exeNum;

    /**
     * 会话ID sessionId
     */
    private String sessionId;

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 时间
     */
    private Long time;

    private String query;

    public void exeTotal() {
        this.exeNum++;
    }
}
